/*
 *  client_window.cpp
 */

#include <gtkmm.h>
#include <gtkmm/window.h>
#include "client_app.h"
#include "client_window.h"
#include "../../common/src/mutex.h"

ClientWindow::ClientWindow(BaseObjectType* object,
		                   const Glib::RefPtr<Gtk::Builder>& builder)
                          :Gtk::Window(object), mutex() {}

ClientWindow::~ClientWindow() {}

void ClientWindow::setApp(ClientApp* app) {
    this->app = app;
}

bool ClientWindow::on_delete_event(GdkEventAny* event) {
    app->exit();
    return Gtk::Window::on_delete_event(event);
}

//{+}

